Makefile and rm -f file.{ext1,ext2,ext3} issue
Posted
by ak91
on Stack Overflow
See other posts from Stack Overflow
or by ak91
Published on 2010-06-15T20:13:29Z
Indexed on
2010/06/15
20:22 UTC
Read the original article
Hit count: 281
Hello,
Could you explain me, why Makefile rule:
clean:
rm -f foo.{bar1,bar2,bar3}
does not result in removing files: foo.bar1 foo.bar2 and foo.bar3? I believe I saw pattern like that many times in various Makefiles, but I'm currently writing my own Makefile and can't make that rule work correctly (no files are removed).
I'm using:
- gnu make 3.81
- gnu bash 4.1.5
Bash evals that pattern as I suspect:
$ echo test.{a,b,c}
test.a test.b test.c
Thanks!
© Stack Overflow or respective owner